import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
	// 默认路由配置
	history: createWebHashHistory(),
	routes: [
		{
			path: "/",
			redirect: "/home",
		},
		{
			path: "/home",
			name: "home",
			component: () => import("../views/home.vue"),
		},
		{
			path: "/test-view1",
			name: "test-view1",
			component: () => import("../views/test-view1.vue"),
		},
		{
			path: "/test-view2",
			name: "test-view2",
			component: () => import("../views/test-view2.vue"),
		},
		{
			path: "/test-view3",
			name: "test-view3",
			component: () => import("../views/test-view3.vue"),
		},
	],
});

export default router;
